package com.tql.pandian.mapper;

import com.tql.pandian.entity.TqlHllShopBillFoodReportDayEntity;
import com.tql.pandian.entity.TqlStapOutChange;
import com.tql.pandian.entity.TqlStapOutChangeBomInfo;
import com.tql.pandian.entity.dto.TqlHllShopBillFoodDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TqlHllShopBillFoodMapper {

    List<TqlHllShopBillFoodDTO>  selectShopBillFood(@Param("tableName") String tableName);

    int insertShopBillFoodReportDay(@Param("tableName") String tableName, @Param("list") List<TqlHllShopBillFoodReportDayEntity> list);

    void updateShopBillFood(@Param("tableName") String tableName, @Param("list") List<TqlHllShopBillFoodDTO> list);

    List<TqlStapOutChange> selectShopBillFoodReportDay(@Param("tableName") String shopBillFoodReportday, @Param("list") List<String> deptIds);

    List<TqlStapOutChangeBomInfo> selectShopBillFoodReportDayBomInfo(@Param("shopId") Long shopId, @Param("foodCode") String foodCode);

    List<String> selectRelDeptIds();

    void insertStapOutChange(@Param("tableName") String tableName, @Param("list") List<TqlStapOutChange> entityList);

    void updateShopBillFoodReportDay(@Param("tableName") String tableName,@Param("list") List<TqlStapOutChange> entityList);

    List<String> findEnableFoodCode(String shopId);

    List<TqlStapOutChange> selectShopBillFoodReportDay1(String tableName, String shopID, Long std, Long etd);

    void clearOutByShopIdAndReportDate(String tabName, String shopID, Long std, Long etd);

    void updateShopBillFoodReportDay1(String shopBillFoodReportdayTableName, List<TqlStapOutChange> newEntityList);
}
